.pullLeft {
  float: left;
}

.pullRight {
  float: right;
}

.player {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;

  &.move {

    .head,
    .tool {
      opacity: 1;
    }
  }

  .head {
    position: absolute;
    top: 0px;
    right: 0;
    left: 0;
    // background: rgba(255, 255, 255, 1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent);
    z-index: 2;
    transition: all .5s;
    opacity: 1;
    color: #FFFFFF;
    text-shadow: -1px 1px 0 #000,
      1px 1px 0 #000,
      1px -1px 0 #000,
      -1px -1px 0 #000;
  }

  .title,
  .meta {
    padding: 10px;
    height: 30px;
    line-height: 30px;
    opacity: .85;

    span {
      padding-right: 10px;
    }
  }

  .title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    text-align: center;

    .realname {
      font-size: 18px;
      font-weight: bold;
    }

    .gbId {
      opacity: .5;
    }
  }

  .close {
    cursor: pointer;
    text-align: right;
    margin-top: -5px;
    margin-right: -5px;
  }

  .flexItem {
    flex: 1;
  }

  .meta {
    // background     : rgba(0, 0, 0, .3);
    padding-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;

    .videoInfo {
      flex: 1;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }

  .video {
    flex: 1;
    background: #000000;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    z-index: 1;
  }

  .videoLoading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: default;
    color: #999;
    font-size: 24px;
    font-weight: 300;
  }

  .tool {
    z-index: 2;
    height: 40px;
    line-height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    transition: all .5s;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0px;
    background: rgba(0, 0, 0, .6);
    opacity: 0;

    div {
      width: auto;
      text-align: center;
      color: #FFFFFF;
      cursor: pointer;
      transition: all .3s;

      &:hover {
        color: #CCCCCC;
      }

      &.active {
        color: #ff0000;
      }
    }

    .toolIcon {
      margin-right: 5px;
      font-size: 16px;
    }
  }
}
